// 挂载函数
import Vue from "vue";
import dialogFile from "../index.vue";
const DialogConstructor = Vue.extend(dialogFile); //注册实例
const mountDialog = (dialogOptions, data) => {
  const instance = new DialogConstructor({
    data() {
      return {
        dialogOptions: dialogOptions, //传入的部分属性
        dataOption: data, //传入的值
      };
    },
    name: dialogOptions.domId,
    methods: {}, //方法
  }).$mount();
  document.body.appendChild(instance.$el);
};
export default mountDialog;
